package io.github.rascaler.dcenter.ws;

import org.springframework.stereotype.Component;
import org.yeauty.pojo.Session;

import java.util.HashSet;
import java.util.Set;

/**
 * @ClassName ConnectionManager
 * @Description TODO
 * @Author wurenqing
 * @Date 2023-11-28 13:59
 */
@Component
public class SocketSessionManager {
    private Set<Session> sessions = new HashSet<>();

    public int size() {
        return 0;
    }

    public boolean add(Session obj) {
        return sessions.add(obj);
    }

    public boolean remove(Session obj) {
        return sessions.remove(obj);
    }


}
